import VueRouter from "vue-router";
import home from "./com/HomeComponent.vue";
import huiyuan from "./com/huiyuanComponent.vue";
import shop from "./com/shopComponent.vue";
import shezhi from "./com/shezhiComponent.vue";
import HomeList from "./com/childcom/HomeList.vue";
import listinfo from "./com/childcom/child/listinfo.vue";
import newslist from "./com/childcom/newslist.vue";
import newsinfo from "./com/childcom/child/newsinfo.vue";
import shoplist from "./com/childcom/shoplist.vue";
import shopinfo from "./com/childcom/child/shopinfo.vue";
var router = new VueRouter({
    routes: [
        { path: "/", redirect: "/home" },
        { path: "/home", component: home },
        { path: "/huiyuan", component: huiyuan },
        { path: "/shopcar", component: shop },
        { path: "/shezhi", component: shezhi },
        { path: "/home/list", component: HomeList },
        { path: "/home/list/listinfo", component: listinfo },
        { path: "/home/newslist", component: newslist },
        { path: "/home/newslist/newsinfo", component: newsinfo },
        { path: "/home/shoplist", component: shoplist },
        { path:"/home/shoplist/shopinfo",component:shopinfo}
    ],
    linkActiveClass: "mui-active"
})
export default router